package com.millstein.tsinglog.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/error")
@Controller
public class ErrorController extends BaseController {

    @RequestMapping("/404")
    public String notFound(Model model) {

        super.getCommonDataForPortal(model);

        return "error/404";
    }

    @RequestMapping("/500")
    public String serverError(Model model) {

        super.getCommonDataForPortal(model);

        return "error/500";
    }
}
